<?php
namespace app\admin\controller;

use app\BaseController;
use think\facade\Session;

class ApiGoods extends BaseController
{

    protected $model = null;
    protected $with = [];
    protected $datasArray = null;

    public function initialize(){
        $this->model = new \app\admin\model\GoodGoods;
        $this->with = ['goodcate','goodspace'];
    }

    
    public function add(){
        $userinfo = Session::get("userinfo");
        $this->datasArray = [
            "user_id" =>$userinfo['user_id'],
        ];
        return parent::add();
    }


}